    <?php
    	//construct the product list view
    	foreach($productTypes as $productType)
    	{
    		echo "<li>";
    		echo CHtml::link($productType->type_description, '#', array(
					));
			echo '<ul>';
			foreach($productType->products as $product)
			{
				echo "<li>";
				/*echo CHtml::link($product->product_name, '#', array(
							'onclick'=>'return assignProductID(this,'.$product->product_ID.', "'.$product->product_name.'");'
						)
					);*/
				echo '<a href="#" onclick="return assignProductID(event,this,'.$product->product_ID.',\''.$product->product_name.'\')">'.$product->product_name.'</a>';
				echo "</li>";
			}
			echo "</ul></li>";
    	}
    ?>
